﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace VirginiaForms
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }
        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }
        private void textBox3_TextChanged(object sender, EventArgs e)
        {

        }
        private void Key_Click(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// 点击Encryption按键后出现加密结果
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void encryptionButton_Click(object sender, EventArgs e)
        {
            ///加密
            MyEncoder Encoder = new MyEncoder();
            Encoder.PlainText = plaintextBox.Text;
            Encoder.Key = keyBox.Text;
            Encoder.Encryption();
            resultBox.Text = Encoder.Cypher;
        }

        private void plaintextBox_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
